/**
 *
 * $Rev::				$:  Revision of last commit
 * $Author::	        $:  Author of last commit
 * $Date:: 				$:  Date of last commit
 *
 */

var TIS = TIS ||
{};

(function($){
    $(document).ready(function(){
		
		$("#checkRegistration").bind("click", function(event){
			
			event.preventDefault();
			
			 $.ajax({
	         	type: "GET",
	            url: "student.php",
	            data: ({
	            	checkRegistration:''
	            }),
	            success: function(response){
					$('#messages').html(response);
					$('.ui-state-highlight').effect("highlight", {}, 3000);		
				},
				error: function(XMLHttpRequest, textStatus, errorThrown){
					$('#messages').html(errorText(textStatus) + XMLHttpRequest.responseText);
					$('.ui-state-error').effect("highlight", {}, 3000);
				}
			});
		});
	});
}(jQuery));